/***********************************************************
  > File Name: a.cpp
  > Author: Mou
  > Mail: 2429826959@qq.com
  > Created Time: Thu 15 Sep 2022 05:48:40 PM CST
  > Modified Time:Thu 15 Sep 2022 05:48:40 PM CST
 *******************************************************/

#include <iostream>
#include <string>
#include <iterator>
#include <algorithm>
#include <sstream>

using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::istringstream;

int main()
{
    string s("每天都在想睡觉 89 192 每天都在睡觉 99 2020");
    int id;
    int ip;
    string word;
    word = s.substr(0,3);
    istringstream iss(s);
    iss >> word;
    iss >> id >> ip;
    cout << word << endl;
    cout << id << " "<< ip << endl;
    iss >> word;
    iss >> id >> ip;
    cout << word << endl;
    cout << id << " "<< ip << endl;
    
    return 0;
}

